package com.example.aidocengine.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.aidocengine.pojo.entity.OperationStepValidation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OperationStepValidationMapper extends BaseMapper<OperationStepValidation> {
    
    /**
     * 根据文档ID查询校验结果
     */
    List<OperationStepValidation> selectByDocumentId(@Param("documentId") Long documentId);
    
    /**
     * 批量插入校验结果
     */
    int insertBatch(@Param("validationList") List<OperationStepValidation> validationList);
    
    /**
     * 根据文档ID删除校验结果
     */
    int deleteByDocumentId(@Param("documentId") Long documentId);
}